<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>Document</title>
  
        <link rel="stylesheet" 
        href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.compat.css" />
        
    
</head>
<body>
    <div id="app"></div>
</body>
    <script src="https://unpkg.com/vue@next"></script>
    <script>
        const app = Vue.createApp({
            data() {
              return {

                anniu: true
            }
        },
        methods: {
            hand(){
                this.anniu = !this.anniu
            }
        },

                template:`
                <transition name="animate__animated animate__bounce" 
                enter-active-class="animate__bounce"
                leave-active-class="animate__bounceOutDown" appear>
                    <div v-show="anniu">hello vue.js!!</div>
                </transition>
              
                <button @click="hand">按钮</button>

                `
            })

           const vm = app.mount("#app");
    </script>
</html>